import request from '@/utils/request'

// 查询收货质检列表
export function listAccept(query) {
  return request({
    url: '/system/accept/list',
    method: 'get',
    params: query
  })
}

// 查询收货质检详细
export function getAccept(acceptid) {
  return request({
    url: '/system/accept/' + acceptid,
    method: 'get'
  })
}

// 新增收货质检
export function addAccept(data) {
  return request({
    url: '/system/accept',
    method: 'post',
    data: data
  })
}

// 修改收货质检
export function updateAccept(data) {
  return request({
    url: '/system/accept',
    method: 'put',
    data: data
  })
}

// 删除收货质检
export function delAccept(acceptid) {
  return request({
    url: '/system/accept/' + acceptid,
    method: 'delete'
  })
}
